package xyz.yeidi.dao.api;

import xyz.yeidi.pojo.Deliveryaddress;

import java.util.List;

/**
 * @Author JIP
 * @Date 2021-08-06 10:59
 * @Version 1.0
 * @Describe : 关于Dao对于DeliveryAddress数据处理的接口
 */
public interface DeliveryAddressDao {
    //通过userId得到其所有的收货地址
    public List<Deliveryaddress> getAllAddressByUserId(Integer userId) throws Exception;

    //通过送货id查询收获地址
    public Deliveryaddress getAddressById(Integer id) throws Exception;

    //添加收获地址
    public boolean addAddress(Deliveryaddress deliveryaddress) throws Exception;
}
